package com.tjcd.project.library_base.common.widget;

import android.content.Context;
import android.util.AttributeSet;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

import org.jetbrains.annotations.NotNull;

/**
 * @Author jiangKunKun
 * @CreateDate 2021/7/12
 * @Description 嵌套显示问题
 * @SpittingGrooves
 */
public class CustomScrollRecyclerView extends RecyclerView {
    public CustomScrollRecyclerView(@NonNull @NotNull Context context){
        super(context);
    }

    public CustomScrollRecyclerView(@NonNull @NotNull Context context, @Nullable @org.jetbrains.annotations.Nullable AttributeSet attrs){
        super(context, attrs);
    }

    public CustomScrollRecyclerView(@NonNull @NotNull Context context, @Nullable @org.jetbrains.annotations.Nullable AttributeSet attrs, int defStyle){
        super(context, attrs, defStyle);
    }

    @Override
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int mExpandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, mExpandSpec);
    }
}
